﻿namespace assignment_2_4
{
    internal class program_4
    {
        private static void Main()
        {
            int[][] arr = new int[3][];
            arr[0] = new int[] { 1, 2, 3, 4 };
            arr[1] = new int[] { 5, 1, 2, 3 };
            arr[2] = new int[] { 9, 5, 1, 2 };
            bool flag = true;
            for (int i = 1, j = 1; i < arr.Length && j < arr[0].Length; i++, j++)
            {
                if (arr[i][j] != arr[i - 1][j - 1])
                {
                    flag = false;
                    break;
                }
            }
            Console.WriteLine(flag);
        }
    }
}